import axios from "@/axios";


// 获取分类分页数据
export function getCategoryPageList(data) {
    return axios.post("/admin/category/page", data)
}

// 添加分类
export function addCategory(data) {
    return axios.post("/admin/category/saveOrUpdate", data)
}

// 删除分类
export function deleteCategory(id) {
    return axios.delete("/admin/category/delete?id="+id)
}

export function getCategorySelectList() {
    return axios.post("/admin/category/list")
}